<include file="../Public/header" />
<link href="__PUBLIC__/admin/style.css" rel="stylesheet" />
<script data-main="__PUBLIC__/admin/js/page/admin/content/ad" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.adConfig}</h1>
    </div>

    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width: 10px;">
                <input type="checkbox" class="toggle-all" />
              </th>
              <th style="">ID</th>
              <th style="">{$Think.lang.title}</th>
              <th style="">{$Think.lang.place}</th>
              <th style="">{$Think.lang.ctime}</th>
              <th style="">{$Think.lang.mtime}</th>
              <th style="">{$Think.lang.isActive}</th>
              <th style="">{$Think.lang.order}</th>
              <th style="">{$Think.lang.operating}</th>
            </tr>
          </thead>
          <tbody>
            <volist id="vo" name="ad">
              <tr data-id="{$vo.ad_id}">
                <td>
                  <input type="checkbox" class="toggle" />
                </td>
                <td>{$vo.ad_id}</td>
                <td>{$vo.title}</td>
                <td>
                  <php>echo $place_array[$vo['place']];</php>
                </td>
                <td>{$vo.ctime|date="Y-m-d H:i",###}</td>
                <td>{$vo.mtime|date="Y-m-d H:i",###}</td>
                <td>
                  <eq name="vo.is_active" value="1">是
                    <else />否</eq>
                </td>
                <td>
                  <a href="javascript:;" class="moveup" title="向上移动"></a>
                  <a href="javascript:;" class="movedown" title="向下移动"></a>
                </td>
                <td><a href="{:URL('admin/Content/editAd',array('id'=>$vo['ad_id']))}">{$Think.lang.editor}</a>|
                  <a href="javascript:void(0);" class="A_del">{$Think.lang.delete}</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>

      <div class="datas-ft">
        <div class="actions">
          <a href="{:URL('admin/Content/addAd')}" class="btn">{$Think.lang.addAd}</a>
          <a href="#" class="btn" id="J_del">{$Think.lang.deleteAd}</a>
        </div>
      </div>
    </div>

  </div>
</body>

</html>
